//
//  LJCMusicPlay.h
//  WZLProduct
//
//  Created by 陆静聪 on 16/3/19.
//  Copyright © 2016年 HaiTeng. All rights reserved.
//

#import <AVFoundation/AVFoundation.h>

@interface LJCMusicPlay : AVPlayer

+ (LJCMusicPlay *)shareMusicPlayer;

@property (nonatomic, retain) NSString *url;

- (CGFloat)getDuration;

- (CGFloat)getCurrentTime;

- (void)onOrOff;

/** 是否播放完成 */
@property (nonatomic, copy) void(^endBlock)(void);


- (void)timingOff:(CGFloat)delayTime;

@property (nonatomic, assign) BOOL isPlay;

- (void)playOn;

- (void)pauseOff;

@end
